from django.conf.urls import url

from . import views


urlpatterns = [
    # 位置参数传参
    # url(r'^weather/([a-z]+)/(\d{4})/$', views.weather1),
    #
    # 关键字参数传参
    # url(r'^weather/(?P<city>[a-z]+)/(?P<year>\d{4})/$',views.weather2)
    # 提取查询字符串
    # url(r'^weather3/(?P<city>[a-z]+)/(?P<year>\d{4})/$', views.weather3),
    url(r'^get_body_form/(?P<city>[a-z]+)/(?P<year>\d{4})/$', views.get_body_form),
    url(r'^get_body_json/', views.get_body_json)

]